package com.itdr.protal.controller;


import com.itdr.common.ServerResponse;
import com.itdr.protal.service.ICategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author AirZhang
 * @since 2020-10-20
 */
@RestController
@RequestMapping("/category/")
public class CategoryController {

    @Autowired
    ICategoryService categoryService;

    /**
     * 获取子节点（平级）
     * @param fid
     * @return
     */
    @GetMapping("gz")
    public ServerResponse gz(Integer fid){
        return categoryService.gz(fid);
    }
}

